package p2psim.node;

import java.util.List;

public class Node {

	private int nodeID;
	private int nodeIP;
	private boolean alive;
	private NeighborTable neighbors;

	private int wknIP;//well-known node


	public void join() {


	}

	public void lookup(){
	}

	public void leave(){
	}

	public void handleMsg(Message e){//handle message from other nodes
		Message.TYPE type = e.getMsgType();
		if (type == Message.TYPE.JOIN){
		}else{
		}

	}

	public int getNodeID() {
		return nodeID;
	}

	public void setNodeID(int nodeID) {
		this.nodeID = nodeID;
	}

	public int getNodeIP() {
		return nodeIP;
	}

	public void setNodeIP(int nodeIP) {
		this.nodeIP = nodeIP;
	}

	public boolean isAlive() {
		return alive;
	}

	public void setAlive(boolean alive) {
		this.alive = alive;
	}

	public NeighborTable getNeighbors() {
		return neighbors;
	}

	public void setNeighbors(NeighborTable neighbors) {
		this.neighbors = neighbors;
	}



}
